<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

 
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>insert_user.jsp</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link href="../style/ZuCe.css" rel="stylesheet" type="text/css" />
    <link href="../style/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css" language="java">
	    body{margin:0 auto;padding:0;font:12px Arial, Helvetica, sans-serif; text-align:center}
    </style>
    
 </head>
  <body>

		<div class="MainTop"><img src="../images/maintopright.gif" /></div>
	    <div class="MainBar">
	    	<p style="text-indent:2em; text-align:left"> 你现在的位置: > >作品查询</p>
	    </div>
		    <logic:equal name="loginForm" property="user_name" value="admin">
		    	<logic:present name="pageList" scope="request">
		    	<div id="container">
		    		<div id="content">
				    	<table width="80%">
							<tr>
								<th>作品ID</th>
								<th>作品名</th>
								<th>上传时间</th>
								<th>作品简介</th>
								<th>图片名</th>
								<th>备注信息</th>
								<th>操作</th>
							</tr>
				    		<logic:iterate id="pageList" name="pageList" type="org.srx.struts.form.ShowWorkForm">
				    		<tr>
				    			<td><bean:write name="pageList" property="show_id" /></td>
				    			<td><bean:write name="pageList" property="show_name" /></td>
				    			<td><bean:write name="pageList" property="show_time" /></td>
				    			<td><bean:write name="pageList" property="show_content" /></td>
				    			<td><bean:write name="pageList" property="show_img" /></td>
				    			<td><bean:write name="pageList" property="show_dac" /></td>
				    			<td><a href="showWorkAction.do?method=deleteWork&show_id=<bean:write name="pageList" property="show_id" />">删除</a>
				    				<a href="showWorkAction.do?method=updateWork&show_id=<bean:write name="pageList" property="show_id" />">修改</a>
				    			</td>
				    		</tr>
				    		</logic:iterate>
				    	</table>
				    	
				    	<logic:present name="splitPageInfo" scope="request">
					    	<table>
					    		<tr>
					    			<td>第<bean:write name="splitPageInfo" property= "currentPage"/> 页</td>
					    			<td><a href="showWorkAction.do?method=selectWork&splitPage_id=<bean:write name="splitPageInfo" property= "firstPage" /> "> 首页 </a></td>
					    			<td><a href="showWorkAction.do?method=selectWork&splitPage_id=<bean:write name="splitPageInfo" property= "prePage" /> ">上一页</a></td>
					    			<td><a href="showWorkAction.do?method=selectWork&splitPage_id=<bean:write name="splitPageInfo" property= "nextPage" /> ">下一页</a></td>
					    			<td><a href="showWorkAction.do?method=selectWork&splitPage_id=<bean:write name="splitPageInfo" property= "allPage" /> ">尾页</a></td>
					    		</tr>
					    	</table>
				    	</logic:present>
				    </div>
			    </div>
		    	</logic:present>
		    </logic:equal>
  </body>
</html>
